package ${packageName}.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ${packageName}.dao.${className}Dao;
import java.util.List;
import ${packageName}.vo.${className};

/**
 * 
 * <br>
 * <b>功能：</b>${className}Service<br>
 * <b>作者：</b>suxy<br>
 * <b>日期：</b> 2016 <br>
 * <b>版权所有：
 */
@Service
public class ${className}Service {
	private final static Logger log= LoggerFactory.getLogger(${className}Service.class);
	
	@Autowired
    private ${className}Dao dao;
		
	public ${className}Dao getDao() {
		return dao;
	}

	public List<${className}> query(${className} t){
		return dao.query(t);
	}
	
	public Integer query${className}Count(${className} t){
		return dao.query${className}Count(t);
	}
	
	public void update(${className} t){
		dao.update(t);
	}
	
	public void insert(${className} t){
		dao.insert(t);
	} 	
	
	public void delete(Object id){
		dao.delete(id);
	}
	
	public ${className} queryById(${className} ${className?uncap_first}){
		return dao.queryById(${className?uncap_first});
	}
}
